/**
 * Created by user on 2018/11/14.
 */
import request from "../utils/request";

export async function login(params) {
  return request('/api/login', {
    method: 'POST',
    body: params
  })
}

export async function getUser({ token }) {
  return request(`/api/get_user?token=${token}`)
}
